package org.fruitrecognitionbasedonai.fruitrecognitionbasedonai.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * @Author: Re
 * @Date: 2021/6/19 22:57
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("user_record")
public class UserRecord {
    @TableId(type = IdType.AUTO)
    private  Integer id;
    @TableField("user_id")
    @NotNull(message = "关联用户id为空")
    private Integer userId;
    @TableField("record_id")
    @NotNull(message = "关联记录id为空")
    private Integer recordId;
}
